package com.tjh.gulimall.auth.config;

import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.ViewControllerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

/**
 * Create by koala on 2021-05-05
 */
@Configuration
public class GulimallWebConfig implements WebMvcConfigurer {

    /**
     * day93：
     *  视图映射    
     */
    @Override
    public void addViewControllers(ViewControllerRegistry registry) {
        // registry.addViewController("/login.html").setViewName("login");// day101注释掉，判断用户是否已登录进行相应跳转
        registry.addViewController("/reg.html").setViewName("reg");
    }

}
